package cc.market.VO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "查询商品，返回的数据格式")
public class ProductVO implements Serializable {

    @Schema(description = "主键值")
    private Integer id;
    @Schema(description = "商品标题")
    private String title;

    @Schema(description = "商品价格")
    private BigDecimal price;
    @Schema(description = "商品封面")
    private String coverImage;
    @Schema(description = "想要的人数")
    private Integer likeCount;
    @Schema(description = "发货方式")
    private Integer postType;

    @Schema(description = "用户标识")
    private Integer userId;
    @Schema(description = "头像链接")
    private String avatar;
    @Schema(description = "昵称")
    private String nickName;

}